package com.konsung.ksdc.bean.netbean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 快递详情信息bean
 * Created by DLX on 2016/5/27 0027.
 */
public class ExpressDetailNetBean implements Parcelable {
    /**
     * 发货快递公司
     */
    private String expressCompany;

    /**
     * 快递单号
     */
    private String expressCode;

    /**
     * 快递单号类别  快递单号类别(1、正常,2、换货3、买家换货寄回,4、买家退货寄回)
     */
    private String shipmentType;

    /**
     * 发货时间
     */
    private String sendTime;

    /**
     * 获取快递公司名称
     * @return 快递公司名称
     */
    public String getExpressCompany() {
        return expressCompany;
    }

    /**
     * 设置快递公司名称
     * @param expressCompany 快递公司名称
     */
    public void setExpressCompany(String expressCompany) {
        this.expressCompany = expressCompany;
    }

    /**
     * 获取快递单号
     * @return 快递单号
     */
    public String getExpressCode() {
        return expressCode;
    }

    /**
     * 设置快递单号
     * @param expressCode 快递单号
     */
    public void setExpressCode(String expressCode) {
        this.expressCode = expressCode;
    }

    /**
     * 获取快递类型
     * @return 快递类型
     */
    public String getShipmentType() {
        return shipmentType;
    }

    /**
     * 设置快递类型
     * @param shipmentType 快递类型
     */
    public void setShipmentType(String shipmentType) {
        this.shipmentType = shipmentType;
    }

    /**
     * 获取发货时间
     * @return 发货时间
     */
    public String getSendTime() {
        return sendTime;
    }

    /**
     * 设置发货时间
     * @param sendTime 发货时间
     */
    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.expressCompany);
        dest.writeString(this.expressCode);
        dest.writeString(this.shipmentType);
        dest.writeString(this.sendTime);
    }

    /**
     * 序列化实体类对象
     * @param in Parcel对象
     */
    protected ExpressDetailNetBean(Parcel in) {
        this.expressCompany = in.readString();
        this.expressCode = in.readString();
        this.shipmentType = in.readString();
        this.sendTime = in.readString();
    }

    public static final Parcelable.Creator<ExpressDetailNetBean> CREATOR = new
            Parcelable.Creator<ExpressDetailNetBean>() {
                @Override
                public ExpressDetailNetBean createFromParcel(Parcel source) {
                    return new ExpressDetailNetBean(source);
                }

                @Override
                public ExpressDetailNetBean[] newArray(int size) {
                    return new ExpressDetailNetBean[size];
                }
            };
}
